<?php
/**
 * Created by IntelliJ IDEA.
 * User: Maxwell
 * Date: 2017/5/16
 * Time: 13:37
 */

namespace Home\Org\Util;


class StringCV
{
    static  function gbk2utf8($data)
    {
        if(is_array($data)){
            return array_map("self::gbk2utf8", $data);
        }
        return iconv('gbk','utf-8',$data);

        /*if(is_array($data)){
            return array_map(self::gbk2utf8(), $data);
        }
        print_r($data);
        return iconv('gbk','utf-8',$data);*/
    }

}